package com.example.yqand4v1_1.dao;

import com.example.yqand4v1_1.dao.entity.Volunteer;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface VolunteerEntityMapper {
   //修改资料
    int updateById(Volunteer volunteer);

    //查找用户
    Volunteer selectOne(Volunteer volunteer);

    //注册用户
    int insert(Volunteer volunteer);
    int insertToUser(Volunteer volunteer);
    //id查找
    Volunteer selectById(Volunteer volunteer);

    //验证用户
    Volunteer checkUser(Volunteer volunteer);
}
